﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using mscook.core.domain;
using mscook.core.repositories;

namespace mscook.core.services
{
    public class SocialUserRelationService : ISocialUserRelationService
    {
         private ISocialUserRelationRepository iSocialUserRelationRepository;
         public SocialUserRelationService(ISocialUserRelationRepository iSocialUserRelationRepository)
        {
            this.iSocialUserRelationRepository = iSocialUserRelationRepository;
        }
        public SocialUserRelation SelectSocialUserRelationByPersonID(string personId)
        {
            return this.iSocialUserRelationRepository.SelectSocialUserRelationByPersonID(personId);
        }

        public void SaveOrUpadate(SocialUserRelation socialUserRelation)
        {
            this.iSocialUserRelationRepository.SaveOrUpdate(socialUserRelation);
        }
        public SocialUserRelation SelectSocialUserRelationByPersonName(string personName)
        {
            return this.iSocialUserRelationRepository.SelectSocialUserRelationByPersonName(personName);
        }
       
    }
}
